/*
 * 用户基础类
 * @author: huangzong
 */
const C = require('../common/common.js')

class Rule {
    constructor () {
    }

    /*
   * 打开基础设置页面
   */
    async openAddRule (row) {
        return await C.openBrowserWindow('/addRule', row, {
            transparent: true,
            frame: false,
            // openDevTools: true,
            width: 390,
            height: 290,
            useSpa: true,
            spaModel: 'shop'
        })
    }

    /*
   * 新增管理员（暂时放在这里面）
   */
    async openAddAdmin (row) {
        return await C.openBrowserWindow('/addAdmin', row, {
            transparent: true,
            frame: false,
            // openDevTools: true,
            width: 390,
            height: 440,
            useSpa: true,
            spaModel: 'shop'
        })
    }
}

module.exports = new Rule()